package com.gxkj.drm.service;


import com.gxkj.drm.dao.ResourceManageDao;
import com.gxkj.drm.entitys.Cluster;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by changxiangyang on 2017/9/22.
 */
@Service
public class ClusterService {

    @Resource
    private ResourceManageDao resourceManageDao;

    public List<Cluster> getAllCluster() {
        return resourceManageDao.getClusterInfo();
    }

    public List<Cluster> getClusterInfoByCluster (List<String> clusters) {
        return resourceManageDao.getClusterInfoByCluster(clusters);
    }
}
